﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Serialization;

namespace Generator
{
    class Program
    {
        static void Main(string[] args)
        {
            int maxUserID = 6040;
            int maxMovieID = 3952;
            string pathRatings = Path.GetTempPath() + "ratings.dat";
            string pathMovies = Path.GetTempPath() + "movies.dat";
            string pathSavedRatings = Path.GetTempPath() + "generatedRatings.dat";
            Parser parser = new Parser();
            Tuple<int[,], Dictionary<Tuple<int, int>, int>> ratings = parser.ParseRatings(pathRatings, pathMovies, maxUserID, maxMovieID);
            Generator ratingsGenerator = new Generator(ratings.Item1, maxUserID, maxMovieID, pathSavedRatings);

            ratingsGenerator.Generate();
            Console.WriteLine("Done!");
            Console.ReadLine();
        }
    }
}
